Skip to content

Add opt-in/opt-out config knobs for /review-pr (auto-merge, auto-fix)#2

Open
pgherveou wants to merge 3 commits intoreplghost:mainfrom
pgherveou:auto-merge-config
Open

Add opt-in/opt-out config knobs for /review-pr (auto-merge, auto-fix)#2
pgherveou wants to merge 3 commits intoreplghost:mainfrom
pgherveou:auto-merge-config

Conversation

@pgherveou
Copy link
Copy Markdown
Contributor

@pgherveou pgherveou commented May 8, 2026

Summary

  • auto-merge (default false) — when unset/false, /review-pr reviews, fixes, pushes, and waits for CI but stops short of gh pr merge. Set to true to opt in to auto-merge after CI passes.
  • auto-fix (default false) — when unset/false, the pipeline still produces fixes and runs all local checks, but stops before pushing to show the diff and ask whether to approve (push) or discard (git reset --hard + exit). Set to true to push fixes without prompting (the previous behavior).
  • Both knobs read with git config --get --type=bool product-dev-skills.<key> so the strict true/false semantics are unambiguous, and each gets a CRITICAL: Respect $AUTO_*=false note so the pipeline can't bypass them.
  • INSTALL.md documents both settings with copy-pasteable git config snippets.

Test plan

  • auto-merge=true + auto-fix=true → existing review→fix→push→CI→merge flow.
  • auto-merge unset (or false) + auto-fix=true → pipeline pushes fixes and waits for CI green, then stops without calling gh pr merge.
  • auto-fix unset (or false) → pipeline produces fixes and runs local checks, then prompts; on approve it pushes, on discard it reverts and exits.
  • auto-fix=false in a watcher/non-interactive session → pipeline does not push; reports prepared fixes and exits without committing.
  • Snippet in INSTALL.md copy-pastes cleanly.

pgherveou added 2 commits May 8, 2026 15:50
Introduce `product-dev-skills.auto-merge` git config (default `false`)
so the review pipeline stops after CI is green instead of running
`gh pr merge`, letting users merge manually unless they explicitly
opt in.
Introduce `product-dev-skills.auto-fix` git config (default `true`).
When set to `false`, the pipeline presents review findings and stops:
no edits, no push, no merge. Lets users get a review without having
the assistant modify the PR.
@pgherveou pgherveou changed the title Add opt-in auto-merge config for /review-pr Add opt-in/opt-out config knobs for /review-pr (auto-merge, auto-fix) May 8, 2026
Default `auto-fix=false` so the pipeline still produces fixes and runs
all local checks but stops before pushing, prompting the user to
approve (push) or discard (revert). Setting `auto-fix=true` opts in to
the previous push-without-prompting behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant